<?php

//
//$curl = curl_init();
//
//curl_setopt_array($curl, [
//    CURLOPT_URL => "https://3579t1a889.goho.co/uc/login/sms",
//    CURLOPT_RETURNTRANSFER => true,
//    CURLOPT_ENCODING => "",
//    CURLOPT_MAXREDIRS => 10,
//    CURLOPT_TIMEOUT => 30,
//    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
//    CURLOPT_CUSTOMREQUEST => "POST",
//    CURLOPT_POSTFIELDS => "{\n  \"phone\": \"15719438520\",\n  \"smsCode\": \"3913\"\n}",
//    CURLOPT_HTTPHEADER => [
//        "content-type: application/json"
//    ],
//]);
//
//$response = curl_exec($curl);
//$err = curl_error($curl);
//
//curl_close($curl);
//
//if ($err) {
//    echo "cURL Error #:" . $err;
//} else {
//    echo $response;
//}

//      1f5bdceb004b8411bc466040a70c650f

$curl = curl_init();

curl_setopt_array($curl, [
    CURLOPT_URL => "https://3579t1a889.goho.co/uc/user-info",
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_ENCODING => "",
    CURLOPT_MAXREDIRS => 10,
    CURLOPT_TIMEOUT => 30,
    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
    CURLOPT_CUSTOMREQUEST => "GET",
    CURLOPT_HTTPHEADER => [
        "ct-sob-token: 1f5bdceb004b8411bc466040a70c650f"
    ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
    echo "cURL Error #:" . $err;
} else {
    echo $response;
}
